<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/6/20
 * Time: 上午11:19
 */

namespace app\index\model;


use think\Model;

class User extends Model
{
    protected $table = 't_user';
    function getUserByUid($uid)
    {
        $user = self::get(['uid'=>"$uid"]);
        return $user;
    }
}